package com.haiyou.common.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;


@ApiModel(value = "通用请求参数")
@Data
@Accessors(chain = true)
public class SearchParamEntity {
    @ApiModelProperty(value = "第几页(默认第1页)", name = "pageNum")
    private Integer pageNum = 1;
    @ApiModelProperty(value = "每页大小(默认每页20条)", name = "pageSize")
    private Integer pageSize = 20;
    @ApiModelProperty(value = "排序字段(id,name....)", name = "orderKey")
    private String orderKey = "id";
    @ApiModelProperty(value = "排序类型(desc,asc)", name = "orderType")
    private String orderType = "desc";
}
